/*
 * MODULE NAME:    tcs_cc_upper.c
 * DESCRIPTION:    TCS Call Control Upper Header File
 * AUTHOR:         Thomas Howley
 * DATE:           09 March 2001
 *
 * SOURCE CONTROL: $Id: tcs_cc_upper.h,v 1.1.1.1 2007/12/18 05:32:34 tianwq Exp $
 *
 * LICENSE:
 *     This source code is copyright (c) 2001 RDA Microelectronics.
 *     All rights reserved.
 *
 */

#ifndef __TCS_CC_UPPER_H
#define __TCS_CC_UPPER_H

#include "host_config.h"

#if (RDABT_TCS_TERMINAL || RDABT_TCS_GATEWAY)

#include "tcs_cc_types.h"

#define NO_SIGCHANNEL_EXISTS(callInstance) (callInstance->cid == 0)

t_api TCS_Setup(struct st_t_TCS_callInstance *callInstance);
APIDECL1 t_api APIDECL2 TCS_SetupAcknowledge(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_Information(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_CallProceeding(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_Alerting(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
/*APIDECL1 t_api APIDECL2 TCS_Connect(u_int16 callHandle, struct st_t_TCS_callParams *callParams);*/
APIDECL1 t_api APIDECL2 TCS_Connect(struct st_t_TCS_callInstance *callInstance);
APIDECL1 t_api APIDECL2 TCS_ConnectAcknowledge(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_Disconnect(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_Release(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_ReleaseComplete(struct st_t_TCS_callInstance *callInstance);


APIDECL1 t_api APIDECL2 TCS_StartDTMF(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_StartDTMFAcknowledge(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_StartDTMFReject(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_StopDTMF(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_StopDTMFAcknowledge(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_Progress(u_int16 callHandle, struct st_t_TCS_callParams *callParams);
APIDECL1 t_api APIDECL2 TCS_App_Dev_Update(u_int8 toGW,u_int8 length,u_int8* data,t_bdaddr bd_addr);


#endif /*(RDABT_TCS_TERMINAL || RDABT_TCS_GATEWAY)*/

#endif /* __TCS_CC_UPPER_H  */

